<!-- 损失物品-一般类型(龙文友) -->
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	template="/layout/page/form/page-fieldset-template.xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	>
	
	<ui:param name="caseGoodsViewBean" value="#{commonContentViewBean}"/>
	<ui:param name="compId" value="#{commonContentViewBean.id}" />
	<ui:param name="compTitle" value="一般类型" />
	<ui:param name="compToggleable" value="true" />
    <ui:param name="pvb" value="#{commonContentViewBean.parent}"/>
	
	<ui:define name="compHiddens">
	 	
	</ui:define>
	
	<ui:define name="compContent">
		<ui:decorate template="/layout/input/editable-template.xhtml">
			<!-- 第一行 -->
			 <ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="caseid" />
				<ui:param name="compBean1Lable" value="案件编号" />
				
				<ui:define name="compBean1Content">
					 <h:inputText id="caseid" value="#{caseGoodsViewBean.fields.caseid}" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第二行 -->
			 <ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="goodstype" />
				<ui:param name="compBean1Lable" value="物品类型" />
				
				<ui:define name="compBean1Content">
					<h:selectOneMenu value="#{caseGoodsViewBean.fields.goodstype}">
					     <f:selectItem itemLabel="请选择" itemValue="0"/>
					</h:selectOneMenu>
				</ui:define>
			</ui:decorate>
			
			<!-- 第三行 -->
			  <ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="brand" />
				<ui:param name="compBean1Lable" value="品牌" />
				
				<ui:define name="compBean1Content">
					 <h:inputText id="brand" value="#{caseGoodsViewBean.fields.brand}"/>
				</ui:define>
			</ui:decorate>
			
			<!-- 第四行 -->
			  <ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="producing" />
				<ui:param name="compBean1Lable" value="产地" />
				
				<ui:define name="compBean1Content">
					 <h:inputText id="producing" value="#{caseGoodsViewBean.fields.producing}" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第五行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="model" />
				<ui:param name="compBean1Lable" value="型号" />
				
				<ui:define name="compBean1Content">
					 <h:inputText id="model" value="#{caseGoodsViewBean.fields.model}" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第六行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="normal" />
				<ui:param name="compBean1Id" value="standard" />
				<ui:param name="compBean2Id" value="photo" />
				<ui:param name="compBean1Lable" value="规格" />
				<ui:param name="compBean2Lable" value="照片" />
				
				<ui:define name="compBean1Content">
					<h:inputText id="standard" value="#{caseGoodsViewBean.fields.standard} " />
				</ui:define>
				<ui:define name="compBean2Content">
					<p:fileUpload
						fileUploadListener="#{uploadPhoto}" mode="advanced"
						sizeLimit="1000000" allowTypes="png,gif,jpg">
						<h:inputHidden value="" />
					</p:fileUpload>
				</ui:define>
			</ui:decorate>
			
			 
			
			<!-- 第七行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="normal" />
				<ui:param name="compBean1Id" value="quality" />
				<ui:param name="compBean2Id" value="number" />
				<ui:param name="compBean1Lable" value="成色" />
				<ui:param name="compBean2Lable" value="号码" />
				
				<ui:define name="compBean1Content">
					<h:selectOneMenu value="#{caseGoodsViewBean.fields.quality}">
					     <f:selectItem itemLabel="请选择" itemValue="0"/>
					</h:selectOneMenu>
				</ui:define>
				<ui:define name="compBean2Content">
					<h:inputText id="number" value=" " />
				</ui:define>
			</ui:decorate>
			
			<!-- 第八行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="normal" />
				<ui:param name="compBean1Id" value="amount" />
				<ui:param name="compBean1Lable" value="数量" />
				<ui:param name="compBean2Id" value="weight" />
				<ui:param name="compBean2Lable" value="重量" />
				<ui:define name="compBean1Content">
					 <h:inputText  id="amount" value="#{caseGoodsViewBean.fields.amount}" />
				</ui:define>
				<ui:define name="compBean2Content">
				     <h:inputText  id="weight" value="#{caseGoodsViewBean.fields.weight} " />
				</ui:define>
			</ui:decorate>
			
			<!-- 第九行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="normal" />
				<ui:param name="compBean1Id" value="cost" />
				<ui:param name="compBean1Lable" value="价值" />
				<ui:param name="compBean2Id" value="describe" />
				<ui:param name="compBean2Lable" value="名称描述" />
				<ui:define name="compBean1Content">
				      <h:inputText  id="cost" value=" " />
				</ui:define>
				<ui:define name="compBean2Content">
					 <h:inputText id="describe" value=" " />
				</ui:define>
			</ui:decorate>
			
			<!-- 第十行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single-all" />
				<ui:param name="compBean1Id" value="beizhu" />
				<ui:param name="compBean1Lable" value="特征描述及备注" />
				
				<ui:define name="compBean1Content">
				<h:inputTextarea
					 style="width:700px;height:100px;overflow:auto;"
					 id="beizhu" effectDuration="400"
					 value=" " />
				</ui:define>
			</ui:decorate>
		</ui:decorate>
		
	</ui:define>



	<ui:define name="compButtons">
		<p:commandButton
			title="保存"
			onstart="this.disabled=true"
			image="./img/icons/add.png" value="保存" style="margin:5px;"
			>
			<h:inputHidden value="" />
		</p:commandButton>
		<p:commandButton title="重置" image="ui-icon-disk" value="重置"></p:commandButton>
	</ui:define>
</ui:composition>
